//
//  DetailViewController.h
//  ICEViewPrototype
//
//  Created by Aurélien Ammeloot on 13/07/2010.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ICEPageViewController;
@class ICEStory;

@interface DetailViewController : UIViewController <UIPopoverControllerDelegate, UISplitViewControllerDelegate> {
    
	ICEPageViewController *_pageViewerController;
	
    UIPopoverController *popoverController;
    UIToolbar *toolbar;
    
    id detailItem;
    UILabel *detailDescriptionLabel;
	
	IBOutlet UIWebView *_webView;
	
	// Used internally for the webview
	BOOL _webViewHasAlreadyLoaded;
	
	IBOutlet UIBarButtonItem *_titleItem;
	
	ICEStory *_story;
}

@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;

@property (nonatomic, retain) id detailItem;
@property (nonatomic, retain) IBOutlet UILabel *detailDescriptionLabel;

@property (nonatomic, retain) ICEStory *story;

- (IBAction)showSharingActions:(id)sender;
- (IBAction)showSearchBox:(id)sender;

@end
